package message;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 站内信/消息/通知/公告
 * @author liuding,2012-3-14
 *
 * $LastChangedDate$
 * $Author$ 
 */
@Entity
@Table
public class Message
{
    private int id;
    private int type;   // 消息类型0-系统消息|1-公告|2-点对点消息|3-系统日志
    private int sendId; // 发送人 0-系统
    private int receiveId;  //收信人 0-系统
    private String text;   //文本内容
    private String html;  //HTML内容
    private Date date;  //创建日期
    private int isRead;   //是否已读？1-已读|0-未读
    
    
    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }
    public Date getDate()
    {
        return date;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }
    public String getHtml()
    {
        return html;
    }
    public void setHtml(String html)
    {
        this.html = html;
    }
    
    public int getIsRead()
    {
        return isRead;
    }
    public void setIsRead(int isRead)
    {
        this.isRead = isRead;
    }
    public int getReceiveId()
    {
        return receiveId;
    }
    public void setReceiveId(int receiveId)
    {
        this.receiveId = receiveId;
    }
    public int getSendId()
    {
        return sendId;
    }
    public void setSendId(int sendId)
    {
        this.sendId = sendId;
    }
    public String getText()
    {
        return text;
    }
    public void setText(String text)
    {
        this.text = text;
    }
    public int getType()
    {
        return type;
    }
    public void setType(int type)
    {
        this.type = type;
    }
    
    
}
